
	package Boundry;

	import Boundry.GenericTools.IPanelOperation;
import Boundry.GenericTools.MultiTabbedRequestTableList;

	public class ExecutionPanel extends MultiTabbedRequestTableList implements IPanelOperation {
	private String[] strArrTitles;

	private String[] strArrText;
	private int[] intArrNumberOfTupples;

	public void setNumberOfTupples(int table, int numberOfTupple ) {
		this.intArrNumberOfTupples[table] = numberOfTupple;
	}



	public ExecutionPanel() throws Exception 
		{	
			super(4);
			System.out.println("EvaluationPanel constructor");
			intArrNumberOfTupples = new int[this.numOfTabs];
			
		}
	 
		
			
	@Override
	public void setWhatTobuild()
	{
		for (int i=0 ; i< this.numOfTabs ; i++)
		{
			if (intArrNumberOfTupples[i] == 0) //empty table
			{
				setTobuild(i, false);
			}
			else
			{
				setTobuild(i, true);
			}
		}
	}



	@Override
	public String apHelpButton()
	{
		 return ("Execution panel" );
	}

	@Override
	public void setValuesForAllRequestsTabsTitle() 
	{

		strArrTitles = new String[this.numOfTabs];
		strArrTitles[0] =  "Requests for Execution  ("+ this.intArrNumberOfTupples[0]+")";
		strArrTitles[1] =  "Requests with no time set ("+ this.intArrNumberOfTupples[1]+")";
		for( int i=0 ;i< this.numOfTabs ; i++)
		{
			this.setTitle(i, strArrTitles[i]);
		}

	}
		


	@Override
	public String setTitle() {
		return ("Execution ");
	}



	@Override
	public void setValuesForAllRequestsUpperText() {
		// TODO Auto-generated method stub
		
	}

	}




